You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.Demultiplex Method
Dew Signal for .NET
ContentsIndexHome
Example

Multiplex and demultiplex test.

using Dew.Math; using Dew.Math.Editors; using Dew.Math.Units; using Dew.Signal; using Dew.Signal.Units; using Dew.Math.Tee; using Dew.Signal.Tee; private void button1_Click(object sender, EventArgs e) { Vector b = new Vector(0); Vector c = new Vector(0); Vector h = MtxExpr.Ramp(6, TMtxFloatPrecision.mvDouble,0,1); // h = [0 1 2 3 4 5] SignalUtils.Multiplex(h,b,3,2); // b = [0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5] SignalUtils.Demultiplex(b,c,3,2); // c = [0 1 2 3 4 5] MtxVecTee.DrawIt(c,"",false); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.